import React, { Component } from 'react'
import { BrowserRouter, Route } from 'react-router-dom'
import RouterConfig from '@MODULES/routerConfig'
import Sentry from '@COMMON/sentry'


class Router extends Component {

  render() {
    return (
      <BrowserRouter>
        <Sentry>
          {
            RouterConfig.map((item) => {
              return (
                <Route key={item.path} path={item.path} exact component={item.component}/>
              )
            })
          }
        </Sentry>
      </BrowserRouter>
    )
  }
}

export default Router
